home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpproceduraldb" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpproceduraldb</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpproceduraldb</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-procedural-db-proc-info">gimp_procedural_db_proc_info</link> (<link linkend="gchar">gchar</link> *procedure,
- <link linkend="gchar">gchar</link> **blurb,
- <link linkend="gchar">gchar</link> **help,
- <link linkend="gchar">gchar</link> **author,
- <link linkend="gchar">gchar</link> **copyright,
- <link linkend="gchar">gchar</link> **date,
- <link linkend="GimpPDBProcType">GimpPDBProcType</link> *proc_type,
- <link linkend="gint">gint</link> *num_args,
- <link linkend="gint">gint</link> *num_values,
- <link linkend="GimpParamDef">GimpParamDef</link> **args,
- <link linkend="GimpParamDef">GimpParamDef</link> **return_vals);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-procedural-db-get-data">gimp_procedural_db_get_data</link> (<link linkend="gchar">gchar</link> *identifier,
- <link linkend="gpointer">gpointer</link> data);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-procedural-db-set-data">gimp_procedural_db_set_data</link> (<link linkend="gchar">gchar</link> *identifier,
- <link linkend="gpointer">gpointer</link> data,
- <link linkend="guint32">guint32</link> bytes);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-procedural-db-dump">gimp_procedural_db_dump</link> (<link linkend="gchar">gchar</link> *filename);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-procedural-db-query">gimp_procedural_db_query</link> (<link linkend="gchar">gchar</link> *name,
- <link linkend="gchar">gchar</link> *blurb,
- <link linkend="gchar">gchar</link> *help,
- <link linkend="gchar">gchar</link> *author,
- <link linkend="gchar">gchar</link> *copyright,
- <link linkend="gchar">gchar</link> *date,
- <link linkend="gchar">gchar</link> *proc_type,
- <link linkend="gint">gint</link> *num_matches,
- <link linkend="gchar">gchar</link> ***procedure_names);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-procedural-db-proc-arg">gimp_procedural_db_proc_arg</link> (<link linkend="gchar">gchar</link> *procedure,
- <link linkend="gint">gint</link> arg_num,
- <link linkend="GimpPDBArgType">GimpPDBArgType</link> *arg_type,
- <link linkend="gchar">gchar</link> **arg_name,
- <link linkend="gchar">gchar</link> **arg_desc);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-procedural-db-proc-val">gimp_procedural_db_proc_val</link> (<link linkend="gchar">gchar</link> *procedure,
- <link linkend="gint">gint</link> val_num,
- <link linkend="GimpPDBArgType">GimpPDBArgType</link> *val_type,
- <link linkend="gchar">gchar</link> **val_name,
- <link linkend="gchar">gchar</link> **val_desc);
- <link linkend="gint">gint</link> <link linkend="gimp-procedural-db-get-data-size">gimp_procedural_db_get_data_size</link>
- (<link linkend="gchar">gchar</link> *identifier);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-procedural-db-proc-info">gimp_procedural_db_proc_info ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_procedural_db_proc_info (<link linkend="gchar">gchar</link> *procedure,
- <link linkend="gchar">gchar</link> **blurb,
- <link linkend="gchar">gchar</link> **help,
- <link linkend="gchar">gchar</link> **author,
- <link linkend="gchar">gchar</link> **copyright,
- <link linkend="gchar">gchar</link> **date,
- <link linkend="GimpPDBProcType">GimpPDBProcType</link> *proc_type,
- <link linkend="gint">gint</link> *num_args,
- <link linkend="gint">gint</link> *num_values,
- <link linkend="GimpParamDef">GimpParamDef</link> **args,
- <link linkend="GimpParamDef">GimpParamDef</link> **return_vals);</programlisting>
- <para>
- Queries the procedural database for information on the specified
- procedure.
- </para>
- <para>
- This procedure returns information on the specified procedure. A
- short blurb, detailed help, author(s), copyright information,
- procedure type, number of input, and number of return values are
- returned. Additionally this function returns specific information
- about each input argument and return value.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>procedure</parameter> :</entry>
- <entry> The procedure name.
- </entry></row>
- <row><entry align="right"><parameter>blurb</parameter> :</entry>
- <entry> A short blurb.
- </entry></row>
- <row><entry align="right"><parameter>help</parameter> :</entry>
- <entry> Detailed procedure help.
- </entry></row>
- <row><entry align="right"><parameter>author</parameter> :</entry>
- <entry> Author(s) of the procedure.
- </entry></row>
- <row><entry align="right"><parameter>copyright</parameter> :</entry>
- <entry> The copyright.
- </entry></row>
- <row><entry align="right"><parameter>date</parameter> :</entry>
- <entry> Copyright date.
- </entry></row>
- <row><entry align="right"><parameter>proc_type</parameter> :</entry>
- <entry> The procedure type.
- </entry></row>
- <row><entry align="right"><parameter>num_args</parameter> :</entry>
- <entry> The number of input arguments.
- </entry></row>
- <row><entry align="right"><parameter>num_values</parameter> :</entry>
- <entry> The number of return values.
- </entry></row>
- <row><entry align="right"><parameter>args</parameter> :</entry>
- <entry> The input arguments.
- </entry></row>
- <row><entry align="right"><parameter>return_vals</parameter> :</entry>
- <entry> The return values.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-procedural-db-get-data">gimp_procedural_db_get_data ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_procedural_db_get_data (<link linkend="gchar">gchar</link> *identifier,
- <link linkend="gpointer">gpointer</link> data);</programlisting>
- <para>
- Returns data associated with the specified identifier.
- </para>
- <para>
- This procedure returns any data which may have been associated with
- the specified identifier. The data is copied into the given memory
- location.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>identifier</parameter> :</entry>
- <entry> The identifier associated with data.
- </entry></row>
- <row><entry align="right"><parameter>data</parameter> :</entry>
- <entry> A byte array containing data.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success, FALSE if no data has been associated with
- the identifier
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-procedural-db-set-data">gimp_procedural_db_set_data ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_procedural_db_set_data (<link linkend="gchar">gchar</link> *identifier,
- <link linkend="gpointer">gpointer</link> data,
- <link linkend="guint32">guint32</link> bytes);</programlisting>
- <para>
- Associates the specified identifier with the supplied data.
- </para>
- <para>
- This procedure associates the supplied data with the provided
- identifier. The data may be subsequently retrieved by a call to
- 'procedural-db-get-data'.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>identifier</parameter> :</entry>
- <entry> The identifier associated with data.
- </entry></row>
- <row><entry align="right"><parameter>data</parameter> :</entry>
- <entry> A byte array containing data.
- </entry></row>
- <row><entry align="right"><parameter>bytes</parameter> :</entry>
- <entry> The number of bytes in the data
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-procedural-db-dump">gimp_procedural_db_dump ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_procedural_db_dump (<link linkend="gchar">gchar</link> *filename);</programlisting>
- <para>
- Dumps the current contents of the procedural database
- </para>
- <para>
- This procedure dumps the contents of the procedural database to the
- specified file. The file will contain all of the information
- provided for each registered procedure. This file is in a format
- appropriate for use with the supplied \"pdb_self_doc.el\" Elisp
- script, which generates a texinfo document.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>filename</parameter> :</entry>
- <entry> The dump filename.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-procedural-db-query">gimp_procedural_db_query ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_procedural_db_query (<link linkend="gchar">gchar</link> *name,
- <link linkend="gchar">gchar</link> *blurb,
- <link linkend="gchar">gchar</link> *help,
- <link linkend="gchar">gchar</link> *author,
- <link linkend="gchar">gchar</link> *copyright,
- <link linkend="gchar">gchar</link> *date,
- <link linkend="gchar">gchar</link> *proc_type,
- <link linkend="gint">gint</link> *num_matches,
- <link linkend="gchar">gchar</link> ***procedure_names);</programlisting>
- <para>
- Queries the procedural database for its contents using regular
- expression matching.
- </para>
- <para>
- This procedure queries the contents of the procedural database. It
- is supplied with seven arguments matching procedures on { name,
- blurb, help, author, copyright, date, procedure type}. This is
- accomplished using regular expression matching. For instance, to
- find all procedures with \"jpeg\" listed in the blurb, all seven
- arguments can be supplied as \".*\", except for the second, which
- can be supplied as \".*jpeg.*\". There are two return arguments for
- this procedure. The first is the number of procedures matching the
- query. The second is a concatenated list of procedure names
- corresponding to those matching the query. If no matching entries
- are found, then the returned string is NULL and the number of
- entries is 0.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>name</parameter> :</entry>
- <entry> The regex for procedure name.
- </entry></row>
- <row><entry align="right"><parameter>blurb</parameter> :</entry>
- <entry> The regex for procedure blurb.
- </entry></row>
- <row><entry align="right"><parameter>help</parameter> :</entry>
- <entry> The regex for procedure help.
- </entry></row>
- <row><entry align="right"><parameter>author</parameter> :</entry>
- <entry> The regex for procedure author.
- </entry></row>
- <row><entry align="right"><parameter>copyright</parameter> :</entry>
- <entry> The regex for procedure copyright.
- </entry></row>
- <row><entry align="right"><parameter>date</parameter> :</entry>
- <entry> The regex for procedure date.
- </entry></row>
- <row><entry align="right"><parameter>proc_type</parameter> :</entry>
- <entry> The regex for procedure type: { 'Internal GIMP procedure', 'GIMP Plug-in', 'GIMP Extension' }.
- </entry></row>
- <row><entry align="right"><parameter>num_matches</parameter> :</entry>
- <entry> The number of matching procedures.
- </entry></row>
- <row><entry align="right"><parameter>procedure_names</parameter> :</entry>
- <entry> The list of procedure names.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-procedural-db-proc-arg">gimp_procedural_db_proc_arg ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_procedural_db_proc_arg (<link linkend="gchar">gchar</link> *procedure,
- <link linkend="gint">gint</link> arg_num,
- <link linkend="GimpPDBArgType">GimpPDBArgType</link> *arg_type,
- <link linkend="gchar">gchar</link> **arg_name,
- <link linkend="gchar">gchar</link> **arg_desc);</programlisting>
- <para>
- Queries the procedural database for information on the specified
- procedure's argument.
- </para>
- <para>
- This procedure returns information on the specified procedure's
- argument. The argument type, name, and a description are retrieved.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>procedure</parameter> :</entry>
- <entry> The procedure name.
- </entry></row>
- <row><entry align="right"><parameter>arg_num</parameter> :</entry>
- <entry> The argument number.
- </entry></row>
- <row><entry align="right"><parameter>arg_type</parameter> :</entry>
- <entry> The type of argument.
- </entry></row>
- <row><entry align="right"><parameter>arg_name</parameter> :</entry>
- <entry> The name of the argument.
- </entry></row>
- <row><entry align="right"><parameter>arg_desc</parameter> :</entry>
- <entry> A description of the argument.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-procedural-db-proc-val">gimp_procedural_db_proc_val ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_procedural_db_proc_val (<link linkend="gchar">gchar</link> *procedure,
- <link linkend="gint">gint</link> val_num,
- <link linkend="GimpPDBArgType">GimpPDBArgType</link> *val_type,
- <link linkend="gchar">gchar</link> **val_name,
- <link linkend="gchar">gchar</link> **val_desc);</programlisting>
- <para>
- Queries the procedural database for information on the specified
- procedure's return value.
- </para>
- <para>
- This procedure returns information on the specified procedure's
- return value. The return value type, name, and a description are
- retrieved.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>procedure</parameter> :</entry>
- <entry> The procedure name.
- </entry></row>
- <row><entry align="right"><parameter>val_num</parameter> :</entry>
- <entry> The return value number.
- </entry></row>
- <row><entry align="right"><parameter>val_type</parameter> :</entry>
- <entry> The type of return value.
- </entry></row>
- <row><entry align="right"><parameter>val_name</parameter> :</entry>
- <entry> The name of the return value.
- </entry></row>
- <row><entry align="right"><parameter>val_desc</parameter> :</entry>
- <entry> A description of the return value.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-procedural-db-get-data-size">gimp_procedural_db_get_data_size ()</title>
- <programlisting><link linkend="gint">gint</link> gimp_procedural_db_get_data_size
- (<link linkend="gchar">gchar</link> *identifier);</programlisting>
- <para>
- Returns size of data associated with the specified identifier.
- </para>
- <para>
- This procedure returns the size of any data which may have been
- associated with the specified identifier. If no data has been
- associated with the identifier, an error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>identifier</parameter> :</entry>
- <entry> The identifier associated with data.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The number of bytes in the data.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-